package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("payment")
public class Payment implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    private Integer status;

    @Field("openid")
    private String openid;

    private String imei;

    private String orderid;

    private String type;

    @Field("outTradeNo")
    private String outTradeNo;

    //@Field("is_subscribe")
    private String subscribe;

    private Double time;

    @Field("create_time")
    private Date createTime;

    @Field("update_time")
    private Date updateTime;

}
